﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Index.aspx.cs" Inherits="V5_EShop.Admin.User.User_Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <!--#include file="../inc/libs2.aspx"-->
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="toptable" width="100%">
        <tr>
            <td class="topnavichar" style="padding-left: 14px">
                <div align="left">
                    位置导航：<a class="list_link" href="../Admin_Index_Main.aspx" target="main">首页</a><img alt=""
                        border="0" src="/sysImages/folder/navidot.gif" />用户管理</div>
            </td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="Navitable"
        width="100%">
        <tr>
            <td align="left">
                <a href="User_Index.aspx">用户管理</a> | <a href="User_Index.aspx?Action=edit">添加</a>
            </td>
        </tr>
    </table>
    <br />
    <form id="form1" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" CssClass="listtable"
                GridLines="None" OnRowCommand="gvList_RowCommand">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="UserName" HeaderText="会员账号" />
                    <asp:BoundField DataField="TrueName" HeaderText="真实姓名" />
                    <asp:BoundField DataField="UserEmail" HeaderText="电子邮件" />
                    <asp:BoundField DataField="QQ" HeaderText="QQ号码" />
                    <asp:BoundField HeaderText="积分" DataField="UserScore" />
                    <asp:BoundField DataField="RegDate" HeaderText="注册时间" />
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,"IsLock").ToString()=="1"?"锁定":"正常" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:Button ID="Button1" runat="server" Text="修改" CommandArgument='<%# Bind("ID") %>'
                                CommandName="go" />
                            <asp:Button ID="Button2" runat="server" Text="删除" CommandArgument='<%# Bind("ID") %>'
                                CommandName="del" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%">
            </webdiyer:AspNetPager>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table border="0" cellpadding="5" cellspacing="1" class="edittable">
                <tr>
                    <td align="right" width="250">
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        密 码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword" runat="server" TextMode="Password"></asp:TextBox>
                        不修改可以为空!
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        密 码(确认)：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword2" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        e-mail：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserEmail" runat="server" Width="258px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        找回密码问题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserQuestion" runat="server" Width="257px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        找回密码答案：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserAnswer" runat="server" Width="254px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        积分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserScore" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        ICQ：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserICQ" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        所属会员组：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlGroupID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="txtID" runat="server" Value="0" />
                        <asp:Button ID="btnUserSave" runat="server" OnClick="btnUserSave_Click" Text="添加保存" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
